package PHANVANVUONG.OOP.HOMEWORK;

public class Students {
	private String Masv, ten, email, Phone;
	public Students(String Masv, String ten){
		this.Masv=Masv;
		this.ten=ten;
		email="abc@gmail.com";
		Phone="123456789";
	}
	
	public Students(String Masv, String ten, String email, String Phone){
		this.email=email;
		this.Masv=Masv;
		this.ten=ten;
		this.Phone=Phone;
	}
	
	public String getMa(){
		return Masv;
	}
	
	public String getTen(){
		return ten;
	}
	
	public String getEmail(){
		return email;
	}
	
	public String getPhone(){
		return Phone;
	}
	public String hienthi(){
		return "Họ và tên: "+getTen()+"\nMã SV: "+getMa()+"\nEmail: "+getEmail()+"\nPhone: "+getPhone()+"\n";
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Students std[] = new Students[4];
		std[0]=new Students("SV01", "Hoàng Văn Thanh");
		std[1]=new Students("SV02", "Phạm Thị Thùy Linh");
		std[2]=new Students("SV03", "Trần Văn Hiếu");
		std[3]=new Students("SV04", "Nguyễn Văn Hùng");
		for(int i=0; i<4; i++){
			System.out.println(std[i].hienthi());
		}
		
		System.out.println("THIẾT LẬP THÔNG TIN...\n");
		std[0]=new Students("SV01", "Hoàng Văn Thanh", "thanhhv@gmail.com", "0988 123 456");
		std[1]=new Students("SV02", "Phạm Thị Thùy Linh", "linhptt@gmail.com", "0988 123 457");
		std[2]=new Students("SV03", "Trần Văn Hiếu", "hieutv@gmail.com", "0988 123 458");
		std[3]=new Students("SV04", "Nguyễn Văn Hùng", "hungnv@gmail.com", "0988 123 459");
		
		for(int i=0; i<4; i++){
			System.out.println(std[i].hienthi());
		}
	}

}
